.vTextArea {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin-top: 0;
    border: 1px solid #d9d9d9;
    border-radius: 4px;

    &:hover,
    &:focus-within {
        border-color: #ffb957;
    }

    &:focus-within {
        border-color: #ffb957;
        outline: 0;
        box-shadow: 0 0 0 2px rgba(255, 162, 45, 0.2);
    }

    :global {
        textarea {
            margin-bottom: 0 !important;
            border: none !important;
            box-shadow: none;
            resize: none;

            &:focus,
            &:active {
                border: none;
                box-shadow: none;
            }
        }
    }

    .count {
        display: block;
        padding-right: 5px;
        color: rgba(0, 0, 0, 0.25);
        line-height: 18px;
        text-align: right;
    }

    &.vTextAreaDisabled {
        &:hover,
        &:focus-within {
            border-color: #d9d9d9;
        }

        .count {
            color: rgba(0, 0, 0, 0.25);
            background-color: #f5f5f5;
            cursor: not-allowed;
            opacity: 1;
        }
    }
}

:global {
    .has-error .vTextArea {
        border-color: #f5222d;

        .ant-input:focus {
            outline: 0;
            box-shadow: none !important;
        }

        &:focus-within {
            border-color: #ff4d4f;
            outline: 0;
            box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2);
        }
    }
}
